<?php
/**
 * Created by PhpStorm.
 * User: mayn
 * Date: 2020/9/7
 * Time: 9:46
 */
require_once dirname(dirname(__DIR__)) . '/vendor/autoload.php';
use PhpAmqpLib\Connection\AMQPStreamConnection;
use PhpAmqpLib\Message\AMQPMessage;

//建立连接
$conn       = new AMQPStreamConnection('127.0.0.1', 6379, '', '');
$channel    = $conn->channel();
var_dump($channel);